package com.pinapel.aixml.controller.Menu;

import com.pinapel.aixml.controller.IMainController;
import com.pinapel.aixml.controller.IMenuController;
import com.pinapel.aixml.models.Model;
import com.pinapel.aixml.ui.menuBar.MenuEdit;


/**
 * Clase para crear el Controlador del Menu Editar
 * @author Ruben Perez
 * @since mayo 2012
 */
public class MenuEditController implements IMenuEditController {
	private MenuEdit mView;
	private IMenuController mTopController;
	
	/**
	 * Constructor
	 * @param top
	 */
	public MenuEditController(IMenuController top) {
		mTopController=top;
	}
	
	@Override
	public IMainController getMainController() {
		return mTopController.getMainController();
	}
	
	public void setView(MenuEdit view){
		this.mView=view;
		this.mView.setController(this);
	}

	@Override
	public void preferences() {
		// TODO Auto-generated method stub
		
	}
    
	@Override
	public Model getModel() {
		return this.getMainController().getModel();
	}

}
